package com.sumainfor.pc.gmio.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.sumainfor.common.exception.TCException;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.feign.BasePcMktFeign;
import org.springframework.stereotype.Component;

import java.util.*;


@Component
public class PcMarketFallback implements BasePcMktFeign {

    @Override
    public JsonResult getComName(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getBuilding(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getRoom(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingKitchenFile(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult gethousingKitchenFileByid(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingToiletFile(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult gethousingToiletFileByid(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingDiningFile(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingHouseImg(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingShowImg(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult gethousingDiningFileByid(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getHousingConInfo(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult gethousingHouseImgByid(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }


    @Override
    public JsonResult gethousingShowImgByid(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult saveHouingInfoFile(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getocuntHouging(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }


    @Override
    public JsonResult updateAccepted(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult gethousingByState(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult getHousingInfoById(String houInfoId) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public Map<String, Object> getOmHousingInfoById(String houId) {
        return Maps.newHashMap();
    }

    @Override
    public JsonResult updateOwCallInfo(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult updateOwPeopleInfo(List<Map<String, Object>> list) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public JsonResult updateOwPactInfo(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public Map<String, Object> getOwnerInfoByParams(Map<String, Object> params) {
        return Maps.newHashMap();
    }

    @Override
    public List<Map<String, Object>> selectOwnerPactList(List<String> ownerId) {
        return Lists.newArrayList();
    }

    @Override
    public List<Map<String, Object>> getOwnerPeopleData(String houId) {
        return Lists.newArrayList();
    }

    @Override
    public Map<String, Object> getAddressInfo(String ownerId) {
        return Maps.newHashMap();
    }

    @Override
    public Map<String, Object> getOwnerOldBlankInfo(String owId) {
        return Maps.newHashMap();
    }

    @Override
    public List<Map<String, Object>> getOwnerInfoListByPhone(String phone) {
        return Lists.newArrayList();
    }

    @Override
    public JsonResult UpdatePayPact(Map<String, Object> params) {
        return JsonResult.error("市场部服务器繁忙,请稍后重试！");
    }

    @Override
    public Page<Map<String, Object>> selectSurrenderList(Map<String, Object> page, Map<String, Object> params) {
        return new Page<>();
    }

    @Override
    public String getPactPastTime(String pactId) {
        return null;
    }

    @Override
    public String getActivateNameById(String actId) {
        return null;
    }

    @Override
    public JsonResult getOwnerBillList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙...");
    }

    @Override
    public Page<Map<String, Object>> selectProjectByCenterId(Map<String, Object> params) {
        throw new TCException("服务器繁忙...");
    }

    @Override
    public Page<Map<String, Object>> selectHousingListView(Map<String, Object> params) {
        return null;
    }

    @Override
    public Map<String, Object> selectHousingForType(Integer type, String id) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getHousingInfoByIdsss(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public List<Map<String, Object>> filterHousingData(Map<String, Object> params) {
        org.springframework.util.Assert.state(false, "运营部无响应");
        return null;
    }

    @Override
    public Map<String, Object> selectOwnerPactInfo(String ownerId) {
        return null;
    }

    @Override
    public Map<String, Object> getTenantPactId(String tenantId, String hinfoId) {
        return null;
    }

    @Override
    public Map<String, Object> selectHousingInfo(String hInfoId) {
        throw new TCException("市场部服务异常");
    }

    @Override
    public JsonResult getTrenantBillPact(Map<String, Object> params) {
        return JsonResult.error("市场部服务器繁忙,请稍后重试！");
    }

    @Override
    public JsonResult filterCenterForHousing(Map<String, Object> params) {
        throw new TCException("市场部Feign服务异常");
    }

    @Override
    public List<Map<String, Object>> getAllHousingLists() {
        return new ArrayList<Map<String, Object>>();
    }

    @Override
    public List<Map<String, Object>> getAllPactList() {
        return new ArrayList<>();
    }

    @Override
    public JsonResult selectComIdByHId(Map<String, Object> params) {
        return JsonResult.error("市场部服务繁忙...");
    }

    @Override
    public JsonResult selectHousingDetailByArray(Collection<String> hIds) {
        return JsonResult.error("市场部服务繁忙...");
    }

    @Override
    public JsonResult getHousingRoom(Collection<String> ids) {
        return JsonResult.error("市场部服务繁忙...");
    }

    @Override
    public List<Map<String, Object>> getMiAndComAndBuiAndRoomAndHouList(Map<String, Object> params) {
        return new ArrayList<Map<String, Object>>();
    }

    @Override
    public List<Map<String, Object>> getOwnerDealList() {
        return new ArrayList<Map<String, Object>>();
    }

    @Override
    public List<Map<String, Object>> getOwDelListZTime(Map<String, Object> params) {
        return new ArrayList<>();
    }

    @Override
    public Map<String, Object> getPcatInfoByPaIdAndTenIdMap(Map<String, Object> params) {
        return new HashMap<>();
    }

    @Override
    public JsonResult getPactPDFLink(String patId) {
        return JsonResult.error("市场部服务繁忙...");
    }

    @Override
    public List<Map<String, Object>> getHouIncid(Map<String, Object> params) {
        return new ArrayList<>();
    }
}

